package tankgame4;

import javax.swing.*;

public class HspTankGame04 extends JFrame {
    MyPanel my=null;

    public static void main(String[] args) {
         HspTankGame04 hspTankGame02 = new HspTankGame04();
    }

    public HspTankGame04()  {
        my=new MyPanel();
        new Thread(my).start();

        this.add(my);
        this.setSize(1000,700);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
        this.addKeyListener(my);

    }
}
